package com.sdgakj.dto;

import com.sdgakj.utils.MobileUtil;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;

public class CustomerSimpleDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	@Override
	public String toString() {

		return ToStringBuilder.reflectionToString(this);
	}

	private Long id;
	private String mobile;
	private String name;
	private String pic;//头像

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMobile() {
		return MobileUtil.hideMid4Num(mobile);
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public CustomerSimpleDTO() {
	}

	public CustomerSimpleDTO(Long id, String mobile, String name) {
		this.id = id;
		this.mobile = mobile;
		this.name = name;
	}
}
